package com.xbongbong.pro.statistic.pojo.dto;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.statistic.constant.ChartConstant;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * 公共查询条件保存入参
 * @author zhouwq
 * @date 2020/8/24 9:59
 */

@Getter
@Setter
@ToString
public class CategoryPublishDTO extends BaseDTO {

    private static final long serialVersionUID = 2636418455498381912L;

    /**
     * 分类id
     */
    @NotNull(message = "分类ID不能为空")
    private Long categoryId;

    /**
     * 分类名称
     */
    @NotNull(message = "分类名称不能为空")
    private String categoryName;
    /**
     * 发布还是取消发布
     */
    @NotNull(message = "{dto.msg.chartPublish.publish.NotNull}")
    private Integer publish;

    private Integer isCustom;

    /**
     * 发送到头部还是尾部
     */
    private Integer head;

    public CategoryPublishDTO(){
        this.isCustom = 0;
        head = ChartConstant.PUBLISH_TAIL;
    }

}
